package com.cg.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 加
 * @since 2025-01-17
 */
@Data
@ApiModel(value="addNews对象", description="")
public class AddNewsDTO {
    @NotBlank
    @Size(max = 15,message = "最多15个字符")
    private String title;

    @NotBlank
    @Size(max = 100,message = "最多100个字符")
    private String content;

    private String video;


}
